<extend name="Public/base" />

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>客户联系方式</h2>
	</div>
	<div class="cf">
		
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
	<table class="">
    <thead>
        <tr>
		<th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
		<th class="">ID</th>
		<th class="">公司名称</th>
		<th class="">公司简称</th>
		<th class="">联系人</th>
		<th class="">公司网站</th>
		<th class="">电子邮箱</th>
		<th class="">办公电话</th>
		<th class="">400电话</th>
		<th class="">手机号</th>
		<th class="">主联系方式</th>
		<th class="">传真号码</th>
		<th class="">详细地址</th>
		<th class="">邮政编码</th>
		<th class="">操作</th>
		</tr>
    </thead>
    <tbody>
		<notempty name="_list">
		<volist name="_list" id="vo">
		<tr>
            <td><input class="ids" type="checkbox" name="id[]" value="{$vo.uid}" /></td>
			<td>{$vo.id} </td>
			<td>{$vo.name}</td>
			<td>{$vo.jname}</td>
			<td>{$vo.lianxiren}</td>
			<td>{$vo.wangzhan}</td>
			<td>{$vo.email}</td>
			<td>{$vo.office}</td>
			<td>{$vo.sphone}</td>
			<td>{$vo.phone}</td>
			<td>{$vo.phonetype}</td>
			<td>{$vo.foxnum}</td>
			<td>{$vo.address}</td>
			<td>{$vo.bianma}</td>
			
			<td>
				<a href="{:U('comp/pic',array('cid'=>$vo['cid']))}">logo </a>/ 
				<a href="{:U('comp/des',array('cid'=>$vo['cid']))}"> 公司描述 </a>
             </td>
		</tr>
		</volist>
		<else/>
		<td colspan="14" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
	</tbody>
    </table>
	</div>
    <div class="page">
        {$page}
    </div>

</block>

<block name="script">
	<script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

	<script type="text/javascript">
	//搜索功能
	$("#search").click(function(){
		var url = $(this).attr('url');
        var query  = $('.search-form').find('input').serialize();
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
        query = query.replace(/^&/g,'');
        if( url.indexOf('?')>0 ){
            url += '&' + query;
        }else{
            url += '?' + query;
        }
		window.location.href = url;
	});
	//回车搜索
	$(".search-input").keyup(function(e){
		if(e.keyCode === 13){
			$("#search").click();
			return false;
		}
	});
    //导航高亮
    highlight_subnav('{:U('comp/index')}');
	</script>
</block>
